package org.lzy.shop.viewmodel.repository

import org.lzy.shop.response.CreateMsgResponse
import org.lzy.shop.response.ItemMsg
import org.lzy.shop.response.MyInfoResponse
import org.lzy.shop.response.UserCountResponse

interface MineRepository {
    /**
     * 获取用户个人信息
     */
    suspend fun getMyInfo(): MyInfoResponse?

    /**
     * 获取用户订单数量统计
     */
    suspend fun getUserCount(): UserCountResponse?

    /**
     * 用户登出
     */
    suspend fun logout(): Any?

    /**
     * 创建消息会话
     */
    suspend fun createMsg(): CreateMsgResponse?

    /**
     * 获取消息列表
     */
    suspend fun getMsgList(sessionId: Int?, page: String?): MutableList<ItemMsg>?

    /**
     * 发送消息
     */
    suspend fun sendMessage(sessionId: Int?, content: String): Any?
}
